{include file="public/header"}

<div class="wrapper wrapper-content animated fadeInRight">

    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>角色列表</h5>
        </div>


            <!--搜索框结束-->
            <div class="ibox-content">

                <table class="table table-striped table-bordered table-hover dataTables-example">
                    <thead>
                    <th>
                        <input type="checkbox" id="data-checkall" onclick="check_all(this)" class="checkbox" placeholder="全选/取消">
                    </th>
                    <th>ID</th>
                    <th>角色名</th>
                    <th>描述</th>
                    <th>是否启用</th>
                    <th>操作</th>
                    </thead>

                    <tbody>
                    {foreach name='list' item='item'}
                    <tr>
                        <td>
                            <input type="checkbox" onclick="check_this(this)" name="data-checkbox"
                                   data-id="{$item.id}" class="checkbox data-list-check" value="{$item.id}"
                                   placeholder="选择/取消">
                        </td>
                        <td>{$item.id}</td>
                        <td>{$item.name}</td>
                        <td>{$item.description}</td>
                        <td>{$item.status_text}</td>
                        <td class="td-do">
                            <a href="{:url('admin_group/access','id='.$item.id)}"
                               class="btn btn-warning btn-xs" data-toggle="tooltip" title="授权">
                                <i class="fa fa-key"></i>
                            </a>
                            <a href="{:url('admin_group/edit','id='.$item.id)}"
                               class="btn btn-primary btn-xs" data-toggle="tooltip" title="修改">
                                <i class="fa fa-pencil"></i>
                            </a>
                            <a class="btn btn-danger btn-xs AjaxButton" data-toggle="tooltip" title="删除" data-id="{$item.id}" data-url="del.html">
                                <i class="fa fa-trash"></i>
                            </a>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                {include file="template/data_footer" /}
            </div>

    </div>


</div>



{include file="public/footer"}
<script>
    var start = {
        elem: '#start_date',
        format: 'YYYY-MM-DD',
        min: '2000-01-1', //设定最小日期为当前日期
        max: '2099-06-16', //最大日期
        istime: false,
        istoday: false,
        choose: function(datas){
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };
    var end = {
        elem: '#end_date',
        format: 'YYYY-MM-DD',
        min: '2000-01-1',
        max: '2099-06-16',
        istime: false,
        istoday: false,
        choose: function(datas){
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);
</script>

</html>

